package com.service.impl;


import com.alibaba.fastjson.JSON;
import com.dao.ReportPublicStrDao;
import com.model.ReportPublicStr;
import com.model.ReportSiteValue;
import com.model.ReportStr;
import com.service.Util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;


@Service(value = "ReportPublicStrService")
public class ReportPublicStrService {
    private static final Logger log = LoggerFactory.getLogger(ReportPublicStrService.class);
    @Autowired
    ReportPublicStrDao reportPublicStrDao;


    public List<ReportPublicStr> selectReportPublicStrLimit(int start,int limit) {
        List<ReportPublicStr> reportPublicStrList = reportPublicStrDao.selectReportPublicStrLimit(start,limit);
        List<ReportPublicStr> reportPublicStrList1 = new ArrayList<>();
        for (ReportPublicStr reportPublicStr : reportPublicStrList) {
            if (reportPublicStr.getSampleName() != null) {
                reportPublicStrList1.add(reportPublicStr);
            }
        }
        return reportPublicStrList1;
    }
}
